//
//  MyOrderRefundTableViewCell.m
//  shopping
//
//  Created by 马田成 on 2017/9/1.
//  Copyright © 2017年 qianyi. All rights reserved.
//

#import "MyOrderRefundTableViewCell.h"
#import "MyOrderRefundCollectionViewCell.h"
@implementation MyOrderRefundTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.collectionView layoutIfNeeded];
    //    self.automaticallyAdjustsScrollViewInsets = NO;
    self.collectionView.pagingEnabled = NO;
    self.collectionView.delegate = self;
    self.collectionView.dataSource = self;
    self.collectionView.scrollEnabled = NO;
    
    [self.collectionView registerNib:[UINib nibWithNibName:@"MyOrderRefundCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"MyOrderRefundCollectionViewCell"];
    
    self.collectionView.showsHorizontalScrollIndicator = NO;
    
    //    self.collectionView.bounces = NO;
    self.collectionView.backgroundColor = getColor(@"eeeeee");
    // Initialization code
}
//类别
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{
    
    return 1;
    
}
//数量
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
    
    //    NSLog(@"LLLLLLLLLLLLLLLLLLLLLLLLL%lu", (unsigned long)self.arrOfPic.count);
    //    numOfCount = self.arrOfPic.count;
    
    
    return 2;
    
    
    
}
//内容

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
    
    MyOrderRefundCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"MyOrderRefundCollectionViewCell" forIndexPath:indexPath];
    
    
    return cell;
    
    
    
}
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    return CGSizeMake(DEF_SCREEN_WIDTH, 91);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
